#include<bits/stdc++.h>

using namespace std;

int main() {
    char a[100] = "ball";
    char b[100] = "foot";
    int i = 0, j = 0;
    while (b[j])++j;
    while (b[j++] = a[i++]);
    //strcat(b, a);//b+=a;
    cout << b;
    return 0;
}
